<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<h2>Guitar Wars - Remove a High Score</h2>
</head>

<body>
	<?php 
	 require_once ('appvars.php');
	 require_once ('connectvars.php');
	 
	 $dbc=mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);
	 
	 if(isset($_GET['id'])){
	 	$id=$_GET['id'];
	 	$query="select * from guitarwars where id ='$id'";
	 	$data=mysqli_query($dbc,$query);
	 	while ($row=mysqli_fetch_array($data)){
	 		echo $row['id'].' '.$row['date'].' '.$row['name'].' '.$row['score'].' '.$row['screenshot'].'<br/>';
	 	}
	 	echo $id;
	 }
	 elseif (isset($_POST['id'])){
	 	$id=$_POST['id'];
	 	echo $id;
	 }
	?>
</body>
</html>